<?php use think\facade\Session;

foreach (['success','info','danger','warning'] as $msg): ?>
    <?php if(Session::has($msg)):?>
        <div class="text-center alert alert-<?php echo $msg;?>" role="alert">
           <i class="fa fa-bullhorn"></i> <?php echo Session::get($msg) ;?>
        </div>
    <?php endif;?>
<?php endforeach;?>
